import request from '@/api/request'

// 获取最佳匹配
export const getGoodMatch = (keywords) =>{
    return request({
        url:'/search/multimatch',
        params:{
            keywords
        }
    })
}
// 获取单曲
export const getSearchSong = (keywords,offset,limit) =>{
    return request({
        url:'/cloudsearch',
        params:{
            keywords,
            offset,
            type:1,
            limit

        }
    })
}
// 获取专辑
export const getSearchAlbum = (keywords,offset,limit) =>{
    return request({
        url:'/cloudsearch',
        params:{
            keywords,
            offset,
            type:10,
            limit

        }
    })
}
// 获取歌手信息
export const getSearchSonger = (keywords,offset,limit) =>{
    return request({
        url:'/cloudsearch',
        params:{
            keywords,
            offset,
            type:100,
            limit
        }
    })
}
// 获取歌单信息
export const getSearchSongList = (keywords,offset,limit) =>{
    return request({
        url:'/cloudsearch',
        params:{
            keywords,
            offset,
            type:1000,
            limit
        }
    })
}
// 获取MV信息
export const getSearchMVList = (keywords,offset,limit) =>{
    return request({
        url:'/cloudsearch',
        params:{
            keywords,
            offset,
            type:1004,
            limit
        }
    })
}
// 获取视频信息
export const getSearchVideoList = (keywords,offset,limit) =>{
    return request({
        url:'/cloudsearch',
        params:{
            keywords,
            offset,
            type:1014,
            limit
        }
    })
}
// 获取热搜信息
export const getSearchHotWord = () =>{
    return request({
        url:'/search/hot/detail'
    })
}